/**
 * @Description:
 * @Author: saqqdy
 * @LastEditors: saqqdy
 * @Date: 2021-07-18 00:39:35
 * @LastEditTime: 2021-07-18 12:01:24
 */
import { join } from 'path'

import CopyPlugin from 'copy-webpack-plugin'

import { rootDir } from '../utils/env'

const config = {
    patterns: [{ from: join(rootDir, './src/assets'), to: 'assets' }]
}

export const copyPlugin = new CopyPlugin(config)
